from header_map_icons import *
from module_constants import *
from header_operations import *
from header_triggers import *
from ID_sounds import *


####################################################################################################################
#  Each map icon record contains the following fields:
#  1) Map icon id: used for referencing map icons in other files.
#     The prefix icon_ is automatically added before each map icon id.
#  2) Map icon flags. See header_map icons.py for a list of available flags
#  3) Mesh name.
#  4) Scale. 
#  5) Sound.
#  6) Offset x position for the flag icon.
#  7) Offset y position for the flag icon.
#  8) Offset z position for the flag icon.
####################################################################################################################

banner_scale = 0.3
avatar_scale = 0.15

map_icons = [

("player", 0, "player", avatar_scale, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("player_horseman", 0, "player_horseman", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("gray_knight", 0, "knight_a", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("rav_knight", 0, "knight_b", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("flagbearer_a", 0, "flagbearer_a", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("flagbearer_b", 0, "flagbearer_b", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("peasant", 0, "peasant_a", avatar_scale, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("khergit", 0, "khergit_horseman", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("khergit_horseman_b", 0, "khergit_horseman_b", avatar_scale, snd_gallop, 0.150000, 0.173000, 0.000000),
("axeman", 0, "bandit_a", avatar_scale, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("woman", 0, "woman_a", avatar_scale, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("woman_b", 0, "woman_b", avatar_scale, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("town", mcn_no_shadow, "map_town_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("town_steppe", mcn_no_shadow, "map_town_steppe_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("village_a", mcn_no_shadow, "map_village_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_b", mcn_no_shadow, "map_village_b_pop", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_burnt_a", mcn_no_shadow, "map_village_burnt_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_deserted_a", mcn_no_shadow, "map_village_deserted_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_burnt_b", mcn_no_shadow, "map_village_burnt_b_pop", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_deserted_b", mcn_no_shadow, "map_village_deserted_b_pop", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_snow_a", mcn_no_shadow, "map_village_snow_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_snow_burnt_a", mcn_no_shadow, "map_village_snow_burnt_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("village_snow_deserted_a", mcn_no_shadow, "map_village_snow_deserted_a", 0.450000, 0, 0.000000, 0.000000, 0.000000),
("camp", mcn_no_shadow, "camp_tent", 0.130000, 0, 0.000000, 0.000000, 0.000000),
("ship", mcn_no_shadow, "boat_sail_on", 0.230000, snd_footstep_grass, 0.000000, 0.050000, 0.000000),
("ship_on_land", mcn_no_shadow, "boat_sail_off", 0.230000, 0, 0.000000, 0.000000, 0.000000),
("castle_a", mcn_no_shadow, "map_castle_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("castle_b", mcn_no_shadow, "map_castle_b", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("castle_c", mcn_no_shadow, "map_castle_c", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("castle_d", mcn_no_shadow, "map_castle_d", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("town_snow", mcn_no_shadow, "map_town_snow_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("castle_snow_a", mcn_no_shadow, "map_castle_snow_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("castle_snow_b", mcn_no_shadow, "map_castle_snow_b", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("mule", 0, "icon_mule", 0.200000, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("cattle", 0, "icon_cow", 0.200000, snd_footstep_grass, 0.150000, 0.173000, 0.000000),
("training_ground", mcn_no_shadow, "training", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("bridge_a", mcn_no_shadow, "map_river_bridge_a", 1.270000, 0, 0.000000, 0.000000, 0.000000),
("bridge_b", mcn_no_shadow, "map_river_bridge_b", 0.700000, 0, 0.000000, 0.000000, 0.000000),
("bridge_snow_a", mcn_no_shadow, "map_river_bridge_snow_a", 1.270000, 0, 0.000000, 0.000000, 0.000000),
("custom_banner_01", 0, "custom_map_banner_01", 0.350000, 0, 0.000000, 0.000000, 0.000000,
[
    (ti_on_init_map_icon,
    [
        (store_trigger_param_1, ":var_0"),
        (party_get_slot, ":var_1", ":var_0", slot_town_lord),
        (try_begin),
            (ge, ":var_1", 0),
            (cur_map_icon_set_tableau_material, "tableau_custom_banner_square", ":var_1"),
        (try_end),
    ]),
]),
("custom_banner_02", 0, "custom_map_banner_02", 0.350000, 0, 0.000000, 0.000000, 0.000000,
[
    (ti_on_init_map_icon,
    [
        (store_trigger_param_1, ":var_0"),
        (party_get_slot, ":var_1", ":var_0", slot_town_lord),
        (try_begin),
            (ge, ":var_1", 0),
            (cur_map_icon_set_tableau_material, "tableau_custom_banner_short", ":var_1"),
        (try_end),
    ]),
]),
("custom_banner_03", 0, "custom_map_banner_03", 0.350000, 0, 0.000000, 0.000000, 0.000000,
[
    (ti_on_init_map_icon,
    [
        (store_trigger_param_1, ":var_0"),
        (party_get_slot, ":var_1", ":var_0", slot_town_lord),
        (try_begin),
            (ge, ":var_1", 0),
            (cur_map_icon_set_tableau_material, "tableau_custom_banner_tall", ":var_1"),
        (try_end),
    ]),
]),
("banner_01", 0, "map_flag_kingdom_a", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_02", 0, "map_flag_kingdom_b", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_03", 0, "map_flag_kingdom_d", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_04", 0, "map_flag_04", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_05", 0, "map_flag_05", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_06", 0, "map_flag_06", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_07", 0, "map_flag_07", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_08", 0, "map_flag_08", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_09", 0, "map_flag_09", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_10", 0, "map_flag_10", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_11", 0, "map_flag_11", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_12", 0, "map_flag_12", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_13", 0, "map_flag_13", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_14", 0, "map_flag_14", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_15", 0, "map_flag_kingdom_e", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_16", 0, "map_flag_16", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_17", 0, "map_flag_17", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_18", 0, "map_flag_18", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_19", 0, "map_flag_19", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_20", 0, "map_flag_20", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_21", 0, "map_flag_21", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_22", 0, "map_flag_22", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_23", 0, "map_flag_23", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_24", 0, "map_flag_24", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_25", 0, "map_flag_25", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_26", 0, "map_flag_26", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_27", 0, "map_flag_27", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_28", 0, "map_flag_28", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_29", 0, "map_flag_29", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_30", 0, "map_flag_30", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_31", 0, "map_flag_31", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_32", 0, "map_flag_32", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_33", 0, "map_flag_33", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_34", 0, "map_flag_34", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_35", 0, "map_flag_35", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_36", 0, "map_flag_36", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_37", 0, "map_flag_37", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_38", 0, "map_flag_38", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_39", 0, "map_flag_39", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_40", 0, "map_flag_40", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_41", 0, "map_flag_41", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_42", 0, "map_flag_42", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_43", 0, "map_flag_43", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_44", 0, "map_flag_44", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_45", 0, "map_flag_45", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_46", 0, "map_flag_46", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_47", 0, "map_flag_47", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_48", 0, "map_flag_48", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_49", 0, "map_flag_49", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_50", 0, "map_flag_50", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_51", 0, "map_flag_51", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_52", 0, "map_flag_52", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_53", 0, "map_flag_53", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_54", 0, "map_flag_54", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_55", 0, "map_flag_55", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_56", 0, "map_flag_56", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_57", 0, "map_flag_57", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_58", 0, "map_flag_58", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_59", 0, "map_flag_59", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_60", 0, "map_flag_60", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_61", 0, "map_flag_61", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_62", 0, "map_flag_62", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_63", 0, "map_flag_63", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_64", 0, "map_flag_kingdom_c", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_65", 0, "map_flag_d02", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_66", 0, "map_flag_d03", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_67", 0, "map_flag_d04", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_68", 0, "map_flag_d05", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_69", 0, "map_flag_d06", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_70", 0, "map_flag_d07", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_71", 0, "map_flag_d08", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_72", 0, "map_flag_d09", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_73", 0, "map_flag_d10", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_74", 0, "map_flag_d11", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_75", 0, "map_flag_d12", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_76", 0, "map_flag_d13", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_77", 0, "map_flag_d14", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_78", 0, "map_flag_d15", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_79", 0, "map_flag_d16", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_80", 0, "map_flag_d17", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_81", 0, "map_flag_d18", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_82", 0, "map_flag_d19", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_83", 0, "map_flag_d20", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_84", 0, "map_flag_d21", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_85", 0, "map_flag_e01", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_86", 0, "map_flag_e02", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_87", 0, "map_flag_e03", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_88", 0, "map_flag_e04", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_89", 0, "map_flag_e05", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_90", 0, "map_flag_e06", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_91", 0, "map_flag_e07", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_92", 0, "map_flag_e08", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_93", 0, "map_flag_e09", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_94", 0, "map_flag_e10", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_95", 0, "map_flag_e11", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_96", 0, "map_flag_e12", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_97", 0, "map_flag_e13", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_98", 0, "map_flag_e14", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_99", 0, "map_flag_e15", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_100", 0, "map_flag_e16", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_101", 0, "map_flag_e17", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_102", 0, "map_flag_e18", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_103", 0, "map_flag_e19", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_104", 0, "map_flag_e20", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_105", 0, "map_flag_e21", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_106", 0, "map_flag_f01", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_107", 0, "map_flag_f02", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_108", 0, "map_flag_f03", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_109", 0, "map_flag_f04", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_110", 0, "map_flag_f05", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_111", 0, "map_flag_f06", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_112", 0, "map_flag_f07", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_113", 0, "map_flag_f08", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_114", 0, "map_flag_f09", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_115", 0, "map_flag_f10", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_116", 0, "map_flag_f11", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_117", 0, "map_flag_f12", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_118", 0, "map_flag_f13", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_119", 0, "map_flag_f14", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_120", 0, "map_flag_f15", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_121", 0, "map_flag_f16", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_122", 0, "map_flag_f17", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_123", 0, "map_flag_f18", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_124", 0, "map_flag_f19", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_125", 0, "map_flag_f20", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_a", 0, "map_flag_01", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_b", 0, "map_flag_02", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_c", 0, "map_flag_d01", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_d", 0, "map_flag_03", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_e", 0, "map_flag_15", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("map_flag_kingdom_f", 0, "map_flag_kingdom_f", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("banner_136", 0, "map_flag_f21", 0.350000, 0, 0.000000, 0.000000, 0.000000),
("bandit_lair", mcn_no_shadow, "map_bandit_lair", 0.450000, 0, 0.000000, 0.000000, 0.000000),

]